package com.dw.service;

import static org.junit.Assert.*;

import org.junit.Before;
import org.junit.Test;

public class Demo02Test_Exception {
	 Demo02 d2;
	@Before
	public void before(){
		d2=new Demo02();
	}

	@Test(expected=NumberFormatException.class)
	public void testTestNumberFormat() {
		 d2.testNumberFormat("abc");
	}

	@Test(expected=NumberFormatException.class)
	public void testTestExtends() {
		d2.testExtends();
	}

}
